package com.wc.AlgoOJ_train.train1.c1.A112;

import java.util.Locale;
import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/12/26 10:50
 * 又是A+B
 * http://43.138.190.70:8888/p/A112
 * @description
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            long a = Long.parseLong(sc.next(), 16);
            long b = Long.parseLong(sc.next(), 16);
            System.out.println(Long.toString(a + b,16).toUpperCase(Locale.ROOT));
        }
    }
}
